﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;


namespace BoardGame
{
    /// <summary>
    /// Zero-based board location with origin at lower left.
    /// </summary>
    public struct Coordinate
    {
        private int x;
        private int y;

        public Coordinate (int x, int y)
        {
            this.x = x;
            this.y = y;
        }

        public int X
        { get { return x; } }

        public int Y
        { get { return y; } }

        public override string ToString ()
        {
            return ((char) ('a'+x)).ToString() + (y+1);
        }
    }
}
